package cn.wolfcode.p2p.business.service;

import cn.wolfcode.p2p.base.query.CreditTransferQueryObject;
import cn.wolfcode.p2p.business.domain.CreditTransfer;
import cn.wolfcode.p2p.util.PageResult;

public interface ICreditTransferService {
    PageResult queryCanCredittransfer(CreditTransferQueryObject qo);

    void credittransfer(Long[] bidId);

    PageResult queryCreditTransferForPage(CreditTransferQueryObject qo);

    /**
     * 认购
     * @param id 债权转让对象模型
     */
    void subscribe(Long id);

    void update(CreditTransfer creditTransfer);

    /**
     * 查询招标中的债权标
     * @param bidId
     * @param bidrequestState
     */
    CreditTransfer getCreditTransferByBidIdAndState(Long bidId, int bidrequestState);

}
